﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class AccountPurchaseAgreementInfoConfig : EntityTypeConfiguration<AccountPurchaseAgreementInfo>
    {
        public AccountPurchaseAgreementInfoConfig()
        {
            ToTable("Himall_AccountPurchaseAgreement");           
            HasRequired(x => x.Himall_Accounts).WithMany(x => x.Himall_AccountPurchaseAgreement).HasForeignKey(x => x.AccountId);
        }
    }
}
